import request from '@/utils/request'

// 查询获取品牌名称
export const getBrandName = () => request({
  url: '/sale/brands/getAllBrandName',
  method: 'get'
})

//获取地州名称
export const getRegionName=()=>request({
  url:"/shopping/regions/getAllRegionsName",
  method:'get'
})

//获取属性名称
export const getArrtName=()=>request({
  url:"/shopping/attribute/attrNames",
  method:'get'
})

// 获取商品名称
export const getProductNames=(name)=>request({
  url:"/shopping/product/productName?name="+name,
  method:'get'
})


// 查询不存在新推荐表和人气推荐的商品
export function listCommonProduct(query) {
  return request({
    url: '/shopping/product/commonList',
    method: 'get',
    params: query
  })
}

//地址
export function listAddress() {
  return request({
    url: '/address/area',
    method: 'get'
  })
}
